package com.colldown.iservice.sysconfig.dao.impl;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.colldown.iservice.sysconfig.dao.ISysConfigDao;
@Repository
public class SysConfigDaoImpl implements ISysConfigDao {
	
	 @Autowired  
	 protected SqlSessionTemplate sqlSessionTemplate;

	@Override
	public List queryDeviceList(Map paramMap) {
		return this.sqlSessionTemplate.selectList("com.iservice.sysconfig.queryDeviceList", paramMap);
	}

	@Override
	public Map queryDeviceConfigById(Map paramMap) {
		return this.sqlSessionTemplate.selectOne("com.iservice.sysconfig.queryDeviceConfigById", paramMap);
	}
	
	/**
	* @Title: updDeviceConfigById
	* @Description: TODO(根据id修改设备信息)
	* @author Wayne
	* @param paramMap
	* @return
	* @throws
	 */
	public int updDeviceConfigById(Map paramMap){
		return this.sqlSessionTemplate.update("com.iservice.sysconfig.updDeviceConfigById", paramMap);
	}
	@Override
	public List queryNetDeviceList(Map paramMap) {
		return this.sqlSessionTemplate.selectList("com.iservice.sysconfig.queryNetDeviceList", paramMap);
	}

	@Override
	public Map queryNetDeviceConfigById(Map paramMap) {
		return this.sqlSessionTemplate.selectOne("com.iservice.sysconfig.queryNetDeviceConfigById", paramMap);
	}
	
	/**
	* @Title: updDeviceConfigById
	* @Description: TODO(根据id修改网口设备信息)
	* @author Wayne
	* @param paramMap
	* @return
	* @throws
	 */
	public int updNetDeviceConfigById(Map paramMap){
		return this.sqlSessionTemplate.update("com.iservice.sysconfig.updNetDeviceConfigById", paramMap);
	}
}
